home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
actlib11.zip
/
CALC.ZIP
/
TEST.C
< prev
Wrap
C/C++ Source or Header
|
1993-01-14
|
357b
|
20 lines
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "calc.h"
void main( )
{
char string[255] ;
for (;;) { printf( "\nCalcul : " ) ;
if ( ! *gets(string) ) break ;
if ( calc(string) == HUGE_VAL ) strcpy( string , "error" ) ;
printf( "Result: %s\n" , string ) ;
}
}